package com.shugl.study;

import java.math.BigDecimal;

/**
 * Description
 *
 * @author Shugl
 * @version 1.0
 * @since 2021/4/27 9:19
 */
public class Test {

    public static void main(String[] args) {
        int stock = 55;
        BigDecimal cardAmount;
        if (stock <= 10) {
            cardAmount = new BigDecimal(2000).multiply(new BigDecimal(stock));
        } else if (stock <= 50) {
            cardAmount = new BigDecimal(3000).multiply(new BigDecimal(stock));
        } else {
            cardAmount = new BigDecimal(5000).multiply(new BigDecimal(stock));
        }
        System.out.println(cardAmount);
    }


}

